export default{
    changeCity (state,city) {
        state.city=city
       // localStorage.city=city//localStorage是html5新出的api,他可以帮助我们实现类似cookie的功能，
        //做到本地存储，他的api要比cookie更简单
        try {
          localStorage.city=city
        } catch (e) {
          
        }
      }
}